package com.workcell.workdata.xthings.entity.mqtt;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.workcell.workdata.xthings.constant.ExtOutputAttributes;
import lombok.Data;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

@TableName(value = "t_belt_scales_data")
@Data
@Accessors(chain = true)
public class BeltScalesData {
    /**
     * 主键
     */
    private String id;

    /**
     * 主设备编码
     */
    private String masterDeviceNo;

    /**
     * 从设备编码
     */
    private String slaveDeviceNo;

    /**
     * 厂商编码
     */
    private String manufacturerCode;

    /**
     * 机器码
     */
    private String addressId;

    /**
     * 地址
     */
    private String location;

    /**
     * 瞬时重量
     */
    private String instantaneousWeight;

    /**
     * 累计重量
     */
    private String cumulativeWeight;

    /**
     * 设备状态
     */
    private String deviceStatus;

    /**
     * 数据入库时间
     */
    private LocalDateTime createTime;

	/**
	 * 最近1小时流量
	 */
	@TableField(exist = false)
	@ExtOutputAttributes(key = "最近1小时流量")
	private String cumulativeWeightDiffDataHour;
	/**
	 * 最近24小时流量
	 */
	@TableField(exist = false)
	@ExtOutputAttributes(key = "最近24小时流量")
	private String cumulativeWeightDiffDataDay;
	/**
	 * 最近30天流量
	 */
	@TableField(exist = false)
	@ExtOutputAttributes(key = "最近30天流量")
	private String cumulativeWeightDiffDataMonth;
	/**
	 * 本月累计流量
	 */
	@TableField(exist = false)
	@ExtOutputAttributes(key = "本月累计流量")
	private String cumulativeWeightDiffDataSameMonth;
	
}
